package com.itheima.controller;

import com.itheima.entity.Result;
import com.itheima.service.ReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/report")
@RestController
public class ReportController {
    @Autowired
    private ReportService reportService;

    @GetMapping("/empJobData")
    public Result empJobData(){
        return Result.success(reportService.empjobData());
    }

    @GetMapping("/empGenderData")
    public Result empGenderData(){
        return Result.success(reportService.empGenderData());
    }

    @GetMapping("/studentDegreeData")
    public Result studentDegreeData(){
        return Result.success(reportService.studentDegreeData());
    }

    @GetMapping("/studentCountData")
    public Result studentCountData(){
        return Result.success(reportService.studentCountData());
    }
}
